Part Number Hot Search : 
S40225S Q261A 2SA16 RAL1J A682F T6100215 CD40147 SGM3141B
Product Description
Full Text Search
 

To Download AVR32850 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  application note atmel AVR32850: atsa m4l-ek user guide atmel sam4l features ? atsam4l-ek kit ? board description ? using the demonstration firmware introduction the atsam4l-ek is a reference design and development system for the 32-bit arm ? cortex? -m4 atsam4lc4c microcontroller from atmel ? corporation. the kit is equipped with a rich set of peripherals that make the atsam4l-ek a perfect evaluation platform. this guide shows the user how to quickly get started with this kit. 42026c ? sam4l ? 01/2013
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 2 1. sam4l-ek description 1.1 sam4l-ek board features characteristics specifications mcu atsam4lc4c (256kb flash, 32kb ram), powered in 3.3v clock 12mhz crystal 32.768khz crystal connector 1x usb micro ab for the main cpu atsam4lc4c 1x usb micro b for embedded debugger segger j-link-ob 1x audio jack connector (3.5mm) 1x sensors xplained board connector (2x 10-pin headers) 1x rs485 header (3-pin) board power supply 5v dc from atsam4lc4c usb 5v dc from segger j-link-ob usb 5v dc from a 2-pin header board monitor dedicated mcu for power m easurement of the atsam4lc4c (vddin, vddio, vddana) 1x oled display (128x64) 5x leds 1x joystick 1x usart connected to the atsam4lc4c mcu 1x twi connected to the atsam4lc4c mcu 4x40 segment lcd connected to the atsam4lc4c lcd interface memory 1x serial flash at25df641a user interface for the atsam4lc4c 1x qtouch ? button 1x qtouch slider 1x reset button 1x push button (pb0) 1x led (led0) 1x light sensor
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 3 1.2 board interface connection the following connections are supported by the board: ? usb micro b connector for the embedded debugger and serial debug com port interface segger j-link ob (usb connector j1) ? usb micro ab connector for the atsam4lc4c usb interface (usb connector j305) ? 1x wireless 10-pins interface (with support of both atextbt and rf2xx interfaces) (10-pin headers j207) ? 1x audio jack connector ? 1x rs485 connector for industrial transmitter (rs485) ? 2-pin header for external power supply (5v dc) figure 1-1. atsam4l-ek features overview. segger j-link ob usb connector (j1) 1x qtouch slide r 1x rs485 1x wireless interface (j207) 1x audio j ack 1x se g ment lcd 1x led atsam4lc4c usb (j305) power switch selector (usb or external) 2-pin header for external power supply (5v) 32khz oscillator (12mhz oscillator on bottom side) 1x oled ( board monitor ) 5x leds ( board monitor ) 1x j o y stick ( board monitor ) 1x sensor xplained connectors ( j4-j5 ) 1x reset p ush button 1x user input push button (pb0) 1x qtouch ke y ( cs0 ) board monitor program selection ( j7 )
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 4 2. board description 2.1 hardware figure 2-1. atsam4l-ek block diagram. atsam4lc4c debug swd usart system controller led user i / o external memories debugger ( se gg er j-link ob ) wireless spi + io spi catb osc 32khz 12mhz serial flash i/o usb usb spi board monito r twi eic pb0 abdac power rs485 interface usart usart i/o sam4l power co n su m pt i o n lcd se g ment lcd sensor xplained board analog jack power supply vddin vddana vddio q touch
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 5 2.2 powering the board the atsam4l-ek offers three interfaces to power the board: ? usb embedded debugger segger j-link ob (j1) ? usb atsam4lc4c (j305) ? external 5v (dc) source connected to the j303 2-pin header to select the usb or external power supply, a mechanical switch is used (sw300). the default kit configuration is using atsam4lc4c buck r egulator configuration, where atsam4lc4c is powered at 3.3v (vddin, vddio, vddana). figure 2-2. power supply sources. (j305) usb atsam4lc4c (j1) usb segger j-link ob (j303) 5v external source power switch (sw300) power supply led atsam4lc4c regulator configuration: buck (default) or linear (j107) by-pass buck inductor (j108) when ldo regulator is used
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 6 2.3 buttons / led the atsam4l-ek is equipped with one user push button and one led. the push buttons consist of momentary push button switches mounted directly to the board. when any switch is pressed it will cause a low (zero) to appear at the associated input pin. table 2-1. user i/o mapping. gpio feature pc03 push button pb0 pc10 led0 2.4 qtouch the atsam4l-ek is equipped with one qtouch butt on and one qtouch slider using three channels. table 2-2. qtouch i/o mapping. gpio feature pb04 qtouch button pb02 qtouch slider channel 0 pa04 qtouch slider channel 1 pa05 qtouch slider channel 2 pb03 qtouch discharge pin 2.5 rs485 the atsam4l-ek is equipped with a rs485 interface. to enable the rs485 connector: ? close j200 and j203 jumpers ? open j600 and j601 jumpers table 2-3. rs485 i/o mapping. gpio feature jumper pa06 usart_rts pa08 usart_cts j104.2 to j104.3 pc02 usart_rxd close j200 and j203 pa07 usart_txd open j600 and j601 2.6 light sensor (adc) the atsam4l-ek is equipped with one light sensor connected to one of the adc channel. to enable it, close the jumper j101.2 to j101.3. table 2-4. light sensor i/o mapping. gpio feature jumper pb05 adc channel close j101.2 to j101.3
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 7 2.7 serial flash the atsam4l-ek is equipped with one serial flash at25df641, connected through spi. table 2-5. serial flash i/o mapping. gpio feature pc04 spi_miso pc05 spi_mosi pc06 spi_sck pc00 spi_cs 2.8 audio the atsam4l-ek is equipped with one audio amplifier. to enable it, close j105.2 to j105.3 jumper. table 2-6. audio i/o mapping. gpio feature jumper pc09 audio abdac channel 0 close j105.2 to j105.3 pc13 audio abdac channel 1 close j105.2 to j105.3 2.9 sam4lc4c usb the atsam4l-ek is equipped with one us b connector for the sam4lc4c usb. table 2-7. usb i/o mapping. gpio feature jumper pa25 usb dm pa26 usb dp pb05 usb id pin (gpio) close j101.1 to j101.2 pc07 usb over current detected (gpio) close j103.1 to j103.2 pc08 usb over current enabled (gpio) close j104.1 to j104.2 2.10 wireless the atsam4l-ek is equipped with one 10-pin wireless extension connector, to connect other atmel boards like atextbt or at86rf2xxx. table 2-8. wireless i/o mapping. gpio feature pc04 spi_miso pc05 spi_mosi pc06 spi_sck pa02 spi_cs
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 8 2.11 sensors xplained connection the atsam4l-ek is equipped with one sensor xplained extension connector. to enable it, close j102.2 to j102.3 jumpers. table 2-9. sensors xplained i/o mapping. gpio feature jumper pc04 spi_miso pc05 spi_mosi pc06 spi_sck pc01 spi_cs close j102.2 to j102.3 2.12 embedded debugger the embedded debugger j-link ob module is provided by segger, featuring: ? 1x jtag interface to the atsam4lc4c ? 1x uart interface to the atsam4lc4c ? 1x usb interface for a pc host the usart connection between the atsam4lc4c and the j-link ob module is configured as follow: table 2-10. embedded debugger i/o mapping. gpio feature pc11 usart_rx pc12 usart_tx 2.13 custom glass display this board is equipped with a 4x40 segment lcd, connected to the atsam4lc4c device through the ldca controller. figure 2-3. atsam4lc4c on-board custom glass display.
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 9 2.14 board monitor the board monitor features: ? 1x oled display (128x64) ? 5x leds ? 1x joystick ? 1x usart connected to the atsam4lc4c mcu ? 1x twi connected to the atsam4lc4c mcu the usart connection between atsam4l and the board monitor is configured as: table 2-11. board monitor i/o mapping. gpio feature jumper pc02 usart_rx close j600.1 to j600.2 pa07 usart_tx close j601.1 to j601.2
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 10 3. using the preloaded firmware the sam4l-ek firmware demo features: ? low power architecture: ? display atsam4lc4c power consumption on the board monitor oled display ? use of the power save mode ? use of the power scaling mode (ps0 or ps1) ? segment lcd controller: ? text display text and text scrolling ? hardware automatic animations ? hardware touch (qtouch) support: ? one capacitive button and one slider 3.1 power-on the board ? power the board through the usb connector j1. the board starts the embedded debugger j-link-ob usb enumerations ? if you do not have installer atmel studio 6, install the segger j-link ob driver available here: http://www.segger.com/jlink-software.html caution: do not plug any usb cable on usb connector j305 as it will increase power consumption figures for the demo.
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 11 3.2 running the demonstration firmware 3.2.1 mode 1: ?startup, run mode? (after power-on reset) ? atsam4lc4c is in active mode (12mhz on rc4m) with segment lcd and qtouch enabled. the atsam4lc4c starts with power scaling enabled (ps1) ? atsam4lc4c displays on the segment lcd: ? a scrolling text messa ge ?sam4l-ek demo? ? scrolling animation to show sam4l is in active mode ? atsam4lc4c sends through the usart its internal status to the board monitor (power save mode, voltage scaling, cpu frequency and clock source) ? the board monitor displays on the oled display the power consumption, power save mode, power scaling mode, cpu frequency and clock source of atsam4lc4c ? after 5 seconds, the demo moves to mode 2 clock source atsam4lc4c status powersave mode cpu frequency voltage scaling
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 12 3.2.2 mode 2 ?run mode with all features? ? the atsam4lc4c is in run mode. atsam4lc4c displays the voltage scaling mode (ps1 or ps0) on the segment lcd and its active mode (run) ? using qtouch capacitive button cs0 will change voltage scaling configuration (ps1 or ps0) ? the qtouch slider position will be displayed (0 ? 255) if qtouch slider event is detected ? the atsam4lc4c sends its internal status through usart to the board monitor (power save mode, voltage scaling, cpu frequency and clock source) each time it changes ? using pb0 button will disable qtouch and se gment lcd, the demo move to mode 3 3.2.3 mode 3 ?run mode with no features? ? the atsam4lc4c in active mode (12mhz on rc4m) with power scaling mode ps1. qtouch and lcd are disabled. the ast is st ill running with extern al osc32k oscillator ? the atsam4lc4c is executing the fibonacci algorithm ? using pb0 button will enter the wait power save mode and move the demo to mode 4 segment lcd 1ua 10 100ua 1ma run ps1 12mhz rc4m 10 lcd is off 100 ua/mhz 1.20 ma oled display 12mhz rc4m
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 13 3.2.4 mode 4 ?wait mode? ? the atsam4lc4c is in wait mode with power scaling mode ps1. the ast is still running with external osc32k oscillator ? the atsam4lc4c sends its new internal status through usart to the board monitor (power save mode, voltage scaling, cpu frequency and clock source). the board monitors displays a splash screen indicating the new power save mode (wait here) ? using pb0 button will enter the retention power save mode and move the demo to mode 5 3.2.5 mode 5 ?retention mode? ? the atsam4lc4c in ret mode with po wer scaling configuration ps1. the ex ternal osc32k o scillator is still running ? the atsam4lc4c sends its new internal status through usart to the board monitor (power save mode, voltage scaling, cpu frequency and clock source) ? using pb0 button will enter the back-up power save mode and move the demo to mode 6
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 14 3.2.6 mode 6 ?backup mode? ? the atsam4lc4c is in backup mode with power scaling mode ps1. the external osc32k oscillator is still running ? the atsam4lc4c sends its new internal status through usart to the board monitor (power save mode, voltage scaling, cpu frequency and clock source) ? using pb0 button will go ba ck to mode 1 in run mode
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 15 4. board monitor 4.1 measurement stage the board monitor is in charge of current consumption m easurement of the atsam4lc4c (vddin, vddio, vddana). the current measurement stage works in the range 1a to 50m a. the sampling rate of the current measurement stage is 8khz. each current measure is filtered at 50hz. the accuracy is: - 10% of error on the measure in the range 1a to 10a - 1% of error on the measure in the range 10a to 50ma 4.2 commands between sam4 l and board monitor 4.2.1 register map offset name type description confirm available in firmware version 0x01 bm_pointer_ctrl w enable/disable the board monitor mouse-like pointer 1.2 and above 0x02 bm_pointer_move w send new mouse pointer position 1.2 and above 0x03 bm_ctrl w enable/disable the board monitor 1.2 and above 0x04 bm_led_set w turn-on a led of the board monitor 1.2 and above 0x05 bm_led_clr w turn-off a led of the board monitor 1.2 and above 0x06 bm_led_tgl w toggle a led of the board monitor 1.2 and above 0x07 bm_mcu_status w send mcu power saving information to the board monitor, in order to get them displayed on the oled screen 1.2 and above 0x08 bm_pullup_twi w enable/disable the pull-up on twi lines 1.3* and above 0x09 bm_picouart_send w send picouart frame 1.3* and above 0x0a bm_mcu_get_current w send current consumpt ion measured request 1.3* and above 0x0b bm_tgl_button w force toggle of button line 1.3* and above 0x0c bm_mcu_ret_current r return current consumption measured 1.3* and above 0x0d bm_mcu_get_fifo_free_size w send free size (in byte) of the board monitor command fifo request 1.3* and above 0x0e bm_mcu_ret_fifo_free_size r return the free size (in byte) of the board monitor command fifo 1.3* and above 0x0f bm_print_text w print text on board monitor 1.3* and above 0x10 bm_print_clear w clear print text area 1.3* and above 0x11 bm_get_firmware_version w send firmware version request 1.3* and above 0x12 bm_ret_firmware_version r return firmware version value 1.3* and above note: board monitor firmware 1.3 is available from asf release 3.6.
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 16 4.2.2 apis available for sam4l 4.2.2.1 bm_pointer_ctrl ? board monitor pointer control prototype: void bm_mouse_pointer_ctrl( bool state); parameter(s): state true to enable, false to disable. return value: none. 4.2.2.2 bm_pointer_move ? board monitor pointer move prototype: void bm_mouse_pointer_move(uint32_t x, uint32_t y); parameter(s): x x position. range is [0; 127]. y y position range is [0; 63]. return value: none. 4.2.2.3 bm_ctrl ? board monitor control prototype: void bm_ctrl( bool state); parameter(s): state true to enable, false to disable. return value: none. 4.2.2.4 bm_led_set ? board monitor led set prototype: void bm_led_set(uint32_t led); parameter(s): led led number. range is [0; 3]. return value: none. 4.2.2.5 bm_led_clr ? board monitor led clear prototype: void bm_led_clr(uint32_t led); parameter(s): led led number. range is [0; 3]. return value: none. 4.2.2.6 bm_led_tgl ? board monitor led toggle prototype: void bm_led_tgl(uint32_t led); parameter(s): led led number. range is [0; 3]. return value: none.
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 17 4.2.2.7 bm_mcu_status ? boar d monitor status prototype: void bm_send_mcu_status(uint32_t voltage_scaling, uint32_t sleep_mode, uint32_t cpu_freq, uint32_t cpu_src); parameter(s): voltage_scaling voltage scaling. sleep_mode sleep mode. cpu_freq cpu frequency. cpu source clock. return value: none. 4.2.2.8 bm_pullup_twi ? board monitor pull-up twi prototype: void bm_pullup_twi( bool state); parameter(s): voltage_scaling voltage scaling. sleep_mode sleep mode. cpu_freq cpu frequency. cpu source clock. return value: none. 4.2.2.9 bm_picouart_send ? board monitor picouart send prototype: void bm_send_picouart_frame(uint8_t frame, uint32_t timeout_ms); parameter(s): frame frame to be sent. timeout timeout_ms value in ms. return value: none. 4.2.2.10 bm_mcu_get_current ? board monitor get current prototype: bool bm_get_mcu_current(uint32_t* sleep_mode, float* current); parameter(s): sleep_mode sleep mode desired. current current value measured. return value: true: current value is available. 4.2.2.11 bm_tgl_button ? board monitor toggle button prototype: bool bm_get_mcu_current(uint32_t* sleep_mode, float* current); parameter(s): sleep_mode sleep mode desired. current current value measured. return value: true: current value is available.
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 18 4.2.2.12 bm_mcu_get_fifo_free_size ? board monitor get free fifo size prototype: bool bm_get_fifo_free_size(uint16_t* free_size); parameter(s): free_size free size in byte. return value: true: current fifo size is available. 4.2.2.13 bm_print_text ? board monitor print text prototype: void bm_print_txt(uint8_t* str, uint8_t str_length); parameter(s): str string pattern. str_length string length pattern. return value: none. 4.2.2.14 bm_print_clear ? board monitor clear prototype: void bm_print_clear( void); parameter(s): none. return value: none. 4.2.2.15 bm_get_firmware_version ? board monitor get firmware version prototype: void bm_get_firmware_version(uint8_t *fw_version_minor, uint *fw_version_major); parameter(s): fw_version_minor minor number of firmware version. fw_version_major major number of firmware version. return value: none. 4.3 re-program the board monitor 1. open dos command 2. go into / avrdbg 3. unzip atsam4l-ek_boardmonitor.zip in this folder 4. close j7 header to select board monitor programming (see figure 1-1 ) 5. type: atprogram ?t samice ?i swd ?d atsam3n4a program ?c ?f sam.applications.sam4l_ek_demo.boar d_monitor.sam3n_ek_vx.y.bin ?o 0x400000
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 19 5. errata bug description errata impacted version #1 audio jack connection is wrong (j202). rework j202 connection by cutting off the connection of j202.5: connect j202.1 to left side of c202 and connect j202.2, j202.3 and j202.5 to gnd. rev 2 #2 q301 is mounted in the wrong way. none. rev 2 #3 usart cts/rts signals are not correctly routed to rs485 transceiver (u200). follow this connection to ma ke rs485 connection works: - pa06 (usart0_rts), - pc08 (usart0_cts), - pc02 (usart0_rxd), - pa07 (usart0_txd). to do so: - connect j100.2 to j103.3 with a wire, - close j104.2 to j104.3, - close j200, - close j203, - open the j600 and j601. rev 2 #4 j4 and j5 connectors must be swapped in order to correctly follow xplained board pinout. in order to use sensors xplained board, plug j1 header of sensors xplained board on j4 header of sam4l-ek. all #5 vbus monitor through pa06 can not be used. none. all
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 20 6. references and further information 6.1 device datasheet the device datasheet contains block diagrams of the peripherals and details about implementing firmware for the device. it also contains the electrical specifications and expected characteristics of the device. the datasheet is available on http://www.atmel.com/ in the datasheets section of the product page. 6.2 detailed hardware referen ces (and associated errata) more detailed hardware information for this kit can be found in the file atsam4l-ek_hardware-references.zip available on the atmel web page dedicated to this kit: www.atmel.com/ the atsam4 l family of devices is specified in the sam4l series datasheet. always use this document as a reference throughout the development life cycle of an application destined to run on a sam4l device. 6.3 tools to be able to develop applications for 32-bit arm devices and build binaries for arm targets and program a 32-bit arm device, atmel and its partners provide several tools supported on multiple host targets. ? atmel studio 6 is the integrated development environment (ide) for developing and debugging atmel arm cortex-m and atmel avr ? microcontroller (mcu) based applications. the atmel studio 6 ide gives you a seamless and easy-to-use environment to write, build and debug your applications written in c/c++ or assembly code. http://www.atmel.com/microsite/atmel_studio6/default.aspx ? iar embedded workbench ? : iar? embedded workbench with its optimizing c and c++ compiler provides full support and generates very compact and efficient code for arm device. http://www.iar.com/en/products/iar-embedded-workbench/arm/
atmel AVR32850: atsam4l-ek user guide [application note] 42026c ? sam4l ? 01/2013 21 7. revision history doc. rev. date comments 42026c 01/2013 errata added. 42026b 12/2012 -?sleep mode? has been replaced by ?power save mode? section 3.2 is updated: -updated oled display screenshots -added comment for qtouch slider management in the demo chapter 4 is added. 42026a 09/2012 initial document release
atmel corporation 1600 technology drive san jose, ca 95110 usa tel: (+1)(408) 441-0311 fax: (+1)(408) 487-2600 www.atmel.com a tmel asia limited unit 01-5 & 16, 19f bea tower, millennium city 5 418 kwun tong road kwun tong, kowloon hong kong tel: (+852) 2245-6100 fax: (+852) 2722-1369 a tmel munich gmbh business campus parkring 4 d-85748 garching b. munich germany tel: (+49) 89-31970-0 fax: (+49) 89-3194621 atmel japan g.k. 16f shin-osaki kangyo building 1-6-4 osaki shinagawa-ku, tokyo 141-0032 japan tel: (+81)(3) 6417-0300 fax: (+81)(3) 6417-0370 ? 2013 atmel corporation. all rights reserved. / rev.: 42026c ? sam4l ? 01/2013 atmel ? , atmel logo and combinations thereof, avr ? , dataflash ? , enabling unlimited possibilities ? , qtouch ? , and others are registered trademarks or trademarks of atmel corporation or its subsidiaries. arm ? , cortex? are registered trademarks or trademarks of arm ltd. other terms and product names may be trademarks of others. disclaimer: the information in this document is provided in connection with atmel products. no license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of atmel products. except as set forth in the atmel terms and conditions of sales locat ed on the atmel website, atmel assumes no liability whatsoever and disclaims any express, implied or st atutory warranty relating to its products including, but not li mited to, the implied warranty of merchantability, fitness for a particular purpose, or non-infringement. in no event sh all atmel be liable for any d irect, indirect, consequential, punitive, special or incidental damages (including, without limitation, damages for loss and profits, business i nterruption, or loss of information) arising out of the use or inability to use this document, even if atmel has been advised of the possibility of suc h damages. atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the ri ght to make changes to specifications and products descriptions at any time without notice. atmel does not make any commitment to update the information contained herein. unless specifically provided otherwise, atmel products are not suitable for, and shall not be used in, automotive applications. atmel products are not intended, authorized, or warranted for use as components in applications intend ed to support or sustain life.


▲Up To Search▲   

 
Price & Availability of AVR32850

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X